package com.ls.pattern.interpreter;

/**
 * @author 挥之以墨
 */
public class NumInterpreter implements IArithmeticInterpreter {

    private int value;

    public NumInterpreter(String value) {
        this.value = Integer.parseInt(value);
    }

    @Override
    public int interpret() {
        return this.value;
    }

}
